<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="lhz" uri="http://www.liuhuazhi.com/diancan" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="js/jquery-3.2.1.js"></script>
<title>Insert title here</title>
<link rel="stylesheet" href="css/input.css" />
<link rel="stylesheet" href="css/ArrangeTable.css" />
<style type="text/css">
	.head {
		padding-top: 1%;
		margin: 0 auto;
		text-align: center;
	}
	.fenye{
		width: 95%;
		height: auto;
		margin: 0 auto;
	}
</style>

</head>
<body>
	<div class="head">
		<h4>投诉列表</h4>
		<hr>
	</div>
	<table  width="95%" height="auto"  cellspacing="0" cellpadding="0" border="1px" >
		<colgroup>
			<col width="20%">
			<col width="15%">
			<col width="50%">
			
		</colgroup>
		<tr align="center" class="tr1">
			<td>反馈时间</td>
			<td>联系电话</td>
			<td>反馈内容</td>
			<td>操作</td>
		</tr>
		<c:if test="${not empty fankui.list }">
			<c:forEach var="x" items="${fankui.list}">
				<tr class="tr2" >
					<td>${x.shijian }</td>
					<td class="td1">
						${x.user_phone }
						
					</td>
					<td class="message">
						${x.message }
					</td>
					<td>
						<input type="hidden" class="apt_id" value="${x.feedback_id }">
						<input class="shanchu" type="image" src="image/shanchu.png" title="删除此反馈" "/>
					</td>
				</tr>
			</c:forEach>
		</c:if>
	</table>
	<div class="fenye">
		<lhz:cmp url="ComplaintServlet" pagesize="${param.pagesize}" total="${fankui.total }" curpage="${param.curpage }" op="${param.op }"/>
	</div>
	
</body>
<script type="text/javascript">
	$(function(){
		$(".shanchu").click(function(){
			if(confirm("真的要删除此反馈记录吗？")){
				var id=$(this).prev().val();
				$.get("ComplaintServlet",{op:2,id:id});
				location.reload();	
			}
		});
	});
</script>

</html>